# Contributor: Milan P. Staniić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=weex
pkgver=2.8.3
pkgrel=1
pkgdesc="Non-interactive FTP and FTPS client for updating web pages"
url="http://weex.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
makedepends="openssl-dev"
options="!check" #no tests
subpackages="$pkgname-doc"
source="http://http.debian.net/debian/pool/main/w/weex/weex_$pkgver.tar.gz
	fix-ssl-in-configure.patch
	"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	export CBUILD=$CHOST
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--disable-dependency-tracking \
		--disable-nls
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="0444501cebb0a01dc213ec3efe046499bcabe0e84b315806e60dcc8b96d74e3157d116eba84b2bdff6657e4997dd6b1f7e689c2098b6d45b8e06e67dd74694fa  weex_2.8.3.tar.gz
8b00df510d87fdab7f970abc94e86375b0b96d7bea03d17f9d5ec476074ed4954d8c76687abe9bd6f9b9f901f465984f7ff08bd02684d8964441e39173a9ca75  fix-ssl-in-configure.patch"
